package org.car.world.service.impl;

import java.util.List;

import org.car.world.core.entily.UsercarTable;
import org.car.world.core.mapper.UsercarTableMapper;
import org.car.world.service.UsercarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = {RuntimeException.class, Exception.class})
public class UsercarServiceImpl implements UsercarService {

    @Autowired
    UsercarTableMapper usercarTableMapper;


    @Override
    public int deleteByPrimaryKey(Integer usercarId) {
        return usercarTableMapper.deleteByPrimaryKey(usercarId);
    }

    @Override
    public int insert(UsercarTable record) {
        return usercarTableMapper.insert(record);
    }

    @Override
    public UsercarTable selectByPrimaryKey(Integer usercarId) {
        return usercarTableMapper.selectByPrimaryKey(usercarId);
    }

    @Override
    public List<UsercarTable> selectAll() {
        return usercarTableMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(UsercarTable record) {
        return usercarTableMapper.updateByPrimaryKey(record);
    }

}
